<?php
if($_SERVER["PHP_SELF"] != $CONFIG['phpself'])
exit();
?>
<div class='achdiv'>
<div class='cat'>
<?php echo $ADMIN_SELECTIONCAT_TITLE[$Lang]; ?>
</div>
<br/>
<div id="partone">
<div class="editpart">
<script type="text/javascript">

function valider(){
	var error = 0;
	if(document.formSaisie.title.value == "") {
		error = 1;
	}
	
	if (error != 0){
		alert('<?php echo $ADMIN_CATEGORYTITLE_ERROR[$Lang]; ?>');
	}
	else
	{
		return true;
	}
}
</script>
<form action="index.php?page=<?php echo $GET_VAR_PAGE; ?>" method="post" name="formSaisie" onsubmit="return valider()">
<br/>
<table style="text-align: center; margin-left: auto; margin-right: auto; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td style="width: 50%;"><center><img src="http://www.teamfortress.com/classless/images/01_spy_hat_thumb.jpg"></center></td>
      <td style="width: 50%;">
	  <?php echo $ADMIN_CATEGORY_FIELD[$Lang]; ?>
<br/><center><input type="text" id="1" name="titleCat" value="<?php echo $_SESSION['CatTitle']; ?>"></center><br/>
<center><input name="next" value="<?php if($_SESSION['CatTitle'] == "") echo $ADMIN_CATEGORYDONE_BUTTON[$Lang]; else echo $ADMIN_CATEGORYDONEEDITION_BUTTON[$Lang]; ?>" type="submit"></center><br>
<br/><input type="hidden" name="idOfCat" value="<?php echo $_SESSION['CatId']; ?>"/></td>
    </tr>
  </tbody>
</table>
</form>
<br/>
</div>
<br/><br/>
</div>
<br/><br/>
</div>